<style>
    body,html{
        background-color: #f9f9f9;
    }
</style>
<script>
    window.onload = function () {
        var form = new xhForm($('#xh_form'));
        $('.form-date').datetimepicker({format: 'yyyy-mm-dd',language: 'zh-CN',minView: "month", autoclose:true});
        form.parse();
        $('#bt_modal_confirm',parent.document).click(function () {
            form.submit('hrm/staff/resourceState',{},function (res) {
               window.top.xhTop.showSuccess(res.msg);
               window.top.xhTop.getActiveFrame().staffList.dataGridReload();
               window.top.xhTop.closeModal();
            });
        });
    };
</script>
<form id="xh_form" class="xh-form"  method="post"  style="margin-left: 20px;">
    <div class="xh-area-form">
        <table style="width: 100%;" >
            <tr>
                <td style="width: 75px;">时间</td>
                <td ><input class="form-date" name="time"></td>
                <td ><input type="hidden" name="state" value="{{ state }}"><input type="hidden" name="id" value="{{ id }}"></td>
            </tr>
            <tr>
                <td valign="middle">备注</td>
                <td colspan="3"><textarea type="text" name="desc" border="0" rows="3"></textarea></td>
            </tr>
        </table>
    </div>
</form>